<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>预约寄件</title>
    <!-- Bootstrap -->
    <link href="../bots/css/bootstrap.css" rel="stylesheet">
  </head>
  <body>
    <form action="">
    	<div class="div-bg">
	    	<table class="table ji_table table_1">
				<tr>
					<td class="col-xs-1">
						<table>
							<tr><td style="height:74px;"><img src="../bots/image/j.png" class=" center-block img-circle"  width="38" alt=""></td></tr>
							<tr><td style=""><img src="../bots/image/h.png" class=" center-block img-circle"  width="20" alt="" onClick="change()"></td></tr>
							<tr><td style="height:70px;"><img src="../bots/image/sj.png" class=" center-block img-circle" width="36" alt=""></td></tr>
						</table>
					</td>
					<td class="col-xs-11">
						<table class="table ji_table">
							<tr>
								<td style="padding:0px;border-top:0px;height:80px;">
									<textarea class="js" name="" id="j_info"  placeholder="点击添加寄件人" rows="2" style="border:1px;resize:none;" readonly></textarea>
								</td>
								<td class="dz" style="border-top:0px;">
									<span class="line"></span>
									<img src="../bots/image/ad.png" class="img-dz" alt=""><span class="dzb">地址簿</span>
								</td>
							</tr>
							<tr>
								<td style="padding:0px;height:80px;">
									<textarea class="js" name="" onClick="" id="s_info"  placeholder="点击添加收件人" style="border:0px;resize:none;"  rows="2" readonly></textarea>
								</td>
								<td class="dz">
									<span class="line"></span>
									<img src="../bots/image/ad.png" class="img-dz" alt="" ><span class="dzb">地址簿</span>
								</td>
								</tr>
						</table>
					</td>
				</tr>
	    	</table>
	    </div>
	    <!-- 寄件方式 -->
	    <div class="div-bg">

	    <table class="table ji_table table_2">
			<tr>
				<td class="td_l">寄件方式</td>
				<td class="td_r" id="tr_r">
					<a href="#" onClick="xz_way('way1');" id="way1" class="btn btn-primary btn-small" role="button"><input type="radio"   name="way" checked="checked">随机快递</a>
					<a href="#" onClick="xz_way('way2');" id="way2" data-toggle="modal" data-target="#myModalkd" class="btn btn-default btn-small" role="button"><input type="radio"  name="way">指定快递<span class='jjia'><span class="triangleDiv"></span>加价5元</span></a>
				</td>
			</tr>
			<tr id="time" data-toggle="modal" data-target="#myModaltime">
				<td class="td_l">寄件时间&nbsp;
					<span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
				</td>
			
				<td class="td_r">请选择寄件时间&nbsp;
					<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
				</td>
			</tr>
			<tr id="goods" data-toggle="modal" data-target="#myModalgoods">
				<td class="td_l">物品&amp;重量</td>
				<td class="td_r"><!-- 请选择&nbsp; -->
				<input class="td_input" type="text" id="" name="" placeholder="请选择">
					<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
				</td>
			</tr>
			<tr id="price" data-toggle="modal" data-target="#myModalprice">
				<td class="td_l">保价</td>
				<td class="td_r col-xs-8"><!-- 若价值超过500元建议保价&nbsp; -->
				<input class="td_input" type="text" id="" name="" placeholder="若价值超过500元建议保价">
					<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
				</td>
			</tr>
			<tr name="ser" id="ser" data-toggle="modal" data-target="#myModalser">
				<td class="td_l">增值服务</td>
				<td class="td_r"><!-- 代收货款&nbsp; -->
					<input class="td_input" type="text" id="" name="" placeholder="代收货款">
					<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
				</td>
			</tr>
			<tr name="say" id="say" data-toggle="modal" data-target="#myModalsay">
				<td class="td_l" >对快递员说</td>
				<td class="td_r">
				    <input class="td_input" type="text" id="say_content" name="" placeholder="有什么需要通知小哥的吗?">
				    <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>

				</td>
			</tr>
	    </table>

	   </div>

	   <!-- 更多收件人 -->
	   <div class="div-bg">
	    <table class="table ji_table table_more">
		    <tr>
		    	<td style="border-top:0px;height:46px;text-align:center;color:#3B95FA;">
			    	<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>&nbsp;添加更多收件人
				</td>
			</tr>
	    </table>
	    </div>


	   

	   <!-- 协议 -->
	   <div class="div-hid">
	    </div>
	    <div class="div-bg bottom">
	    <table class="table ji_table table_3">
		    <tr>
		    	<td colspan="2" style="border-top:0px;background-color:#EEF6FF;">
		    	<div class="radio">
				  	<label>
			    		<input type="radio" name="" id="type_radio" class="type_radio" value="option2">&nbsp;
					    <span>我已同意并接受&nbsp;&nbsp;&nbsp;&nbsp;<a id="agm" data-toggle="modal" data-target="#myModalagm" href="#"><strong>《快递服务协议》</strong></a></span>
					</label>
				</div>
				</td>
			</tr>
			<tr>
		    	<td class="td_l">
		    		<p><span class="yf_l">预估运费:</span>&nbsp;<strong><span class="yf">&yen;--.--</span></strong>&nbsp;&nbsp;<span class="up glyphicon glyphicon-menu-up" aria-hidden="true"></span></p>
		    		<p><span class="sjfy">实际费用以快递小哥揽件核实为准</span></p>
				</td>
				<td class="sub"><input class="btn btn-default" type="submit" click="" value="提交"></td>
			</tr>
	    </table>
	    </div>
	
	</form>

 <!-- 快递类型 -->

	     <div class="modal" id="myModalkd" style="display:none;top:60px;">

	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">选择快递类型</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	            <div class="modal-body">
			
						<table class="table ji_table" id="toXg">
						    <tr>
						    	<td>
						    		<!-- <div class="checkboxs"> -->
						    		 <input type="radio" id="checkbox1" name="explain" value="1">
						    		 <label for="">韵达快递</label>
						    		 <!-- </div> -->
								</td>
								<td>
							    	<input type="radio" id="checkbox2" name="explain" value="2"><label for="">中通快递</label>
								</td>
								<td>
							    	<input type="radio" id="checkbox3" name="explain" value="3"><label for="">申通快递</label>
								</td>
							</tr>
							<tr>
						    	<td>
							    	<input type="radio" id="checkbox4" name="explain" value="4"><label for="">圆通快递</label>
								</td>
								<td>
							    	<input type="radio" id="checkbox5" name="explain" value="5"><label for="">百世快递</label>
								</td>
								<td>
							    	<input type="radio" id="checkbox6" name="explain" value="6"><label for="">顺丰快递</label>
								</td>
							</tr>
							
							
					    </table>
	            </div>
	            <div class="modal-footer">
	                <button type="submit" id="" value="" class="btn btn-primary">确定</button>
	            </div>
	           </form>
	        </div>
	    </div>
    </div>

<!-- 快递类型 end -->


<!-- 寄件时间 -->

	     <div class="modal" id="myModaltime" style="display:none;top:60px;">

	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">选择寄件时间段</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	            <div class="modal-body">
						<table class="table ji_table" id="xztime">
						    <tr class="lab">
						    	<td colspan="2" style="text-align:center;">
							    	<label class="lab" for="">今天</label>
								</td>
													
							</tr>
						    <tr>
						    	<td>
						    		 <input type="radio"  id="value1" name="time" value="1"><label for="">9:00——12:00</label>
								</td>
								<td>
							    	<input type="radio"  id="value2" name="time" value="2"><label for="">14:00——18:00</label>
								</td>								
							</tr>
							<tr class="lab">
						    	<td colspan="2" style="text-align:center;">
							    	<label class="lab" for="">明天</label>
								</td>
													
							</tr>
							<tr>
						    	<td>
						    		 <input type="radio" id="" name="time" value="3"><label for="">9:00——12:00</label>
								</td>
								<td>
							    	<input type="radio" id="" name="time" value="4"><label for="">14:00——18:00</label>
								</td>								
							</tr>
							
							
					    </table>
	            </div>
	            <div class="modal-footer">
	                <button type="submit" id="" value="" class="btn btn-primary">确定</button>
	            </div>
	           </form>
	        </div>
	    </div>
    </div>

<!-- 寄件时间 end -->

<!-- 物品&重量 -->
	    <div class="modal" id="myModalgoods" style="display:none;top:60px;">
	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">选择物品类型和重量</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	  <div class="main">
			<div class="kind">
				选择物品类型
				<span class="req">必填</span>
			</div>
			
			<div class="spe">
					<label><input type="radio" name="kinds" id="" value="" /><span>文件</span></label>
					<label><input type="radio" name="kinds" id="electronic" value="" /><span>电子类产品</span></label>
					<label><input type="radio" name="kinds" id="" value="" /><span>生活用品</span></label>
					<label><input type="radio" name="kinds" id="" value="" /><span>服饰</span></label>
					<label><input type="radio" name="kinds" id="" value="" /><span>生鲜</span></label>
					<label><input type="radio" name="kinds" id="" value="" /><span>食品</span></label>
					<label><input type="radio" name="kinds" id="glass" value="" /><span>易碎品</span></label>
					<label><input type="radio" name="kinds" id="" value="" /><span>化妆品</span></label>
					<label><input type="radio" name="kinds" id="drug" value="" /><span>药品</span></label>
					<label><input type="radio" name="kinds" id="other" value="" /><span>其他</span></label>
				<div class="dialog">
					<p id="show"><input type="text"  placeholder="请输入商品名称  "/></p>
				</div>
			</div>
			<div class="attention">禁寄物品：各种枪支弹药、易燃易爆、化学危险品、毒品、各类生化制品、传染性感染性物质、各类非法伪造/侵权物品...</div>
			<div class="weight">
				<p>预估重量</p>
				<div class="actual-weight">
						<span>注：实际重量以快递小哥确定为准</span>
						<span class="num-jian" id="num-jian">-</span>
						<span class="input-num" ><input type="number" name="" id="input-num" value="1" />KG</span>
						<span class="num-jia" id="num-jia">+</span>
				</div>			
			</div>
		</div>
	            <div class="modal-footer">
	                <button type="submit" class="btn btn-primary">确定</button>
	            </div>
	           </form>
	           <div class="showText" id="ele-show">
	           	亲，您寄的物品属于电子类，如物品价值较高，建议您进行保价
	           </div>
	           <div class="showText" id="glass-show">
	           	亲，您寄的物品属于易碎品，风险价高，建议您进行保价
	           </div>
	           <div class="showText" id="drug-show">
	           	亲，您寄的药品能否揽收以业务员验视为准，如物品价值较高，建议您进行保价
	           </div>
	        </div>
	    </div>
    </div>
<!-- 物品&重量 end -->


<!-- 保价 -->
	    <div class="modal" id="myModalprice" style="display:none;top:60px;">
	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">物品保价</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	            <div class="money">
	            	<label>保价金额</label><div class="in-number"><input type="number" dir="ltr" placeholder="请输入申报价值金额1-30000的整数" />元</div>
	            	<p class="val">保价费：<span>1</span>元</p>
	            	<div class="cont">当快件在运输过程中发生遗失、破损时，我们将第一时间提供理赔受理</div>
	            </div>
	            <div class="prompt">
	            	<p>申报价值提示</p>
	            	<p>1.寄件人交寄物品时应申报物品价值，并根据申报价值支付保费。</p> 	            		
	            	<p>
	            		2.单票交寄物价值超过500元的快件，寄件人应当保价。单票交寄物价值超过30000元的快件，寄件人应拆分至单票交寄物价值30000元以下分别寄件，并分别进行申报价值。
	            	</p>
	            	<p>
	            		3.申报价值快件，赔偿按照实际价值损失赔偿，上限为交寄物的申报价值；如快件未足额保价的，则赔偿金额按照保价率折扣，即赔偿金额=实际价值损失*申报价值/实际价值；未申报价值快件，赔偿上限为500元。但无论如何赔偿范围不包括商业机会、预计收益等间接损失。
	            	</p>
	            </div>
	            <div class="modal-footer">
	                <button type="submit" class="btn btn-primary">确定</button>
	            </div>
	           </form>
	           
	        </div>
	    </div>
        </div>
<!-- 保价 end -->



<!-- 增值服务 -->
	    <div class="modal" id="myModalser" style="display:none;top:60px;">
	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">增值服务</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	            <div class="modal-body">
			
						<table class="table ji_table addser">
						    <tr>
						    	<td>
						    		安全号码
						    	</td>
								<td class="safe">
									<input type="radio" id="" name="" value="">
								</td>
							</tr>
							<tr>
						    	<td colspan="2" class="addser-text">
							    	保护面单上收、寄件人电话隐私，可向快递员免费索取
								</td>
			
							</tr>
							<tr class="addser-line">
						    	<td class="col-xs-3">
						    		代收货款
						    	</td>
								<td class="col-xs-12">
									<input type="text" class="form-control" placeholder="&nbsp;&nbsp;请输入代收金额，只能保留一位小数">
								</td>
							</tr>
							<tr>
						    	<td colspan="2" class="addser-text">
							    	快递员代商家向收货方收取货款的服务(最高支持1万)
								</td>
			
							</tr>
							
					    </table>
	            </div>
	            <div class="modal-footer">
	                <button type="submit" class="btn btn-primary">确定</button>
	            </div>
	           </form>
	        </div>
	    </div>
        </div>
<!-- 增值服务 end -->

<!-- 对小哥说 -->

	    <div class="modal" id="myModalsay" style="display:none;top:60px;">

	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">对小哥说</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	            <div class="modal-body">
			
						<table class="table ji_table" id="toXg">
						    <tr>
						    	<td>
						    		 <input type="checkbox" id="checkbox1" name="explain" value="请带纸箱">
						    		 <label for="checkbox1">请带纸箱</label>
								</td>
								<td>
							    	<input type="checkbox" id="checkbox2" name="explain" value="需要爬楼"><label for="checkbox1">需要爬楼</label>
								</td>
								<td>
							    	<input type="checkbox" id="checkbox3" name="explain" value="缺文件袋"><label for="checkbox1">缺文件袋</label>
								</td>
							</tr>
							<tr>
						    	<td>
							    	<input type="checkbox" id="checkbox4" name="explain" value="来前电话"><label for="checkbox1">来前电话</label>
								</td>
								<td>
							    	<input type="checkbox" id="checkbox5" name="explain" value="请带面单"><label for="checkbox1">请带面单</label>
								</td>
								<td>
							    	<input type="checkbox" id="checkbox6" name="explain" value="请带胶带"><label for="checkbox1">请带胶带</label>
								</td>
							</tr>
							<tr>
						    	<td colspan="3">
							    	<div class="div-style">
										<textarea class="textarea-style" id="explain_content" name="explain_content"  placeholder="补充说明" maxlength="30"  onkeyup="setLength(this,30,'wordsLength');"></textarea>
							    	<span id="wordsLength" style="float:right;font-size:12px; color:#BDCADA;margin-right:5px;">0/200</span>
							    	</div>						    	
							    	
								</td>
								
							</tr>
							
					    </table>
	            </div>
	            <div class="modal-footer">
	                <button type="submit" id="exp" value="" class="btn btn-primary">确定</button>
	            </div>
	           </form>
	        </div>
	    </div>
    </div>

<!-- 对小哥说 end -->




    <!-- 快递协议 -->

	    <div class="modal" id="myModalagm" style="display:none;top:60px;">

	    	<div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel" style="color:#3B95FA;text-align:center;">《快递服务协议》</h4>
	            </div>
	            <form action="" class="form-horizontal" role="form" id="" onsubmit="return check_form();">
	            <div class="modal-body">

					<p class="agm"><strong>特别提示:</strong></p>						
					<p class="agm"><strong>禁寄物品:&nbsp;</strong>寄件人<span class="ems">不得交寄各类具有爆炸性、易燃性、腐蚀性、毒害性、感染性以及放射性等可能危害寄递安全的物品、违法违规物品以及其他不予收寄物品</span></p>
					<p class="agm"><strong>禁寄物品:&nbsp;</strong>寄件人<span class="ems">不得交寄各类具有爆炸性、易燃性、腐蚀性、毒害性、感染性以及放射性等可能危害寄递安全的物品、违法违规物品以及其他不予收寄物品</span></p>
					<p class="agm"><strong>禁寄物品:&nbsp;</strong>寄件人<span class="ems">不得交寄各类具有爆炸性、易燃性、腐蚀性、毒害性、感染性以及放射性等可能危害寄递安全的物品、违法违规物品以及其他不予收寄物品</span></p>
						
	            </div>
	            <div class="modal-footer" style="text-align:center;">
	                <button type="submit" class="btn btn-primary" style="width:100%; background-color:#3B95FA;text-align:center;color:white;">同意本条款下次不再提醒</button>
	            </div>
	           </form>
	        </div>
	    </div>
    </div>
<!-- 快递协议 end -->





    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
  </body>
  <script type="text/javascript"> 
  // 交换地址
	function change(){ 
	  var j_info = document.getElementById("j_info").value; 
	  var s_info = document.getElementById("s_info").value; 
	{ 
	   document.getElementById("s_info").value = j_info; 
	   document.getElementById("j_info").value = s_info; 
	  } 
	 } 

	 $("#j_info").on('click',function(e){
	 	window.location.href="./j_address.html";
	 })
	 $("#s_info").on('click',function(e){
	 	window.location.href="./s_address.html";
	 })


	function xz_way(e){
		if(e=='way1'){
			$("#way1").attr('checked',true);
			$("#way2").attr('checked',false);
			$("#way1").removeClass("btn-default");
			$("#way1").addClass("btn-primary");
			$("#way2").addClass("btn-default");
			$("#way2").removeClass("btn-primary");
		}else{
			$("#way2").attr('checked',true);
			$("#way1").attr('checked',false);
			// $("#way2").removeClass("btn-default");
			// $("#way2").addClass("btn-primary");
			$("#way1").addClass("btn-default");
			$("#way1").removeClass("btn-primary");
			$('#myModalkd').show();
		}

}


	 // 调用模态框

		 $("#goods").click(function(){
		  $('#myModalgoods').show();
		});


		 

		 $(function () {
		 	$("#time").click(function(){
  				$('#myModaltime').show();
			});
		  	$('#myModaltime').on('shown.bs.modal', function (event) {
		  		var modal = $(this);
			  	// 获取今天时间
			    var time = new Date();
				var y = time.getFullYear();
				var m = time.getMonth()+1;
				var d = time.getDate();
				var h = time.getHours();
				if (h >= 0 && h < 10){
                }else if (h >= 11 && h < 14){
                    modal.find('#value1').attr("disabled",'disabled');
                }else if (h >= 17){
                   modal.find('#value1').attr("disabled",'disabled');
                   modal.find('#value2').attr("disabled",'disabled');
                }else{
                	
                }
				});

			});
		   
		   $(function(){

		   	$('#myModaltime').on('hidden.bs.modal', function () {
		  		 alter("ss");
				});

		   });
			
		 $("#price").click(function(){
		  $('#myModalprice').show();
		});
		 $("#ser").click(function(){
		  $('#myModalser').show();
		});

		 $("#say").click(function(){
		 	$('#myModalsay').show();
		});
		 $("#agm").click(function(){
		 	$('#myModalagm').show();
		});


        // 字数显示
        function setLength(obj,maxlength,id){
		    var num=maxlength-obj.value.length;
		    var leng=id;
		    if(num<0){
		        num=0;
		    }
		    document.getElementById(leng).innerHTML=num+"/200";
		}

		// 获取模态框表单中的值
		function check_form(){
			var chk_value =[];
		    $('input[name="explain"]:checked').each(function(){
		    	chk_value.push($(this).val());
		    	chk_value_str=chk_value.join(",");
		    });

		    var explain_content=document.getElementById('explain_content').value;
	
			var str = chk_value_str+","+explain_content;

			$("#exp").attr("value",str);
		
		}

		$("#myModalsay").on("hide.bs.modal",function(event){

			var str = document.getElementById('exp').value;
			document.getElementById('say_content').value=str;
		})
	










		//物品种类
		 $("#electronic").click(function(){
		 setTimeout(function(){
		 	$("#ele-show").show();
		 	setTimeout(function(){
		 		$("#ele-show").hide();
		 	},2000)
		 },0) 	
		});
		$("#glass").click(function(){
		 setTimeout(function(){
		 	$("#glass-show").show();
		 	setTimeout(function(){
		 		$("#glass-show").hide();
		 	},2000)
		 },0) 	
		});
		$("#drug").click(function(){
		 setTimeout(function(){
		 	$("#drug-show").show();
		 	setTimeout(function(){
		 		$("#drug-show").hide();
		 	},2000)
		 },0) 	
		});
		
		$("#other").onclick=function(ev){
			var ev = ev || event; //事件对象的浏览器兼容        
      ev.cancelBubble = true;//阻止当前对象的当前事件的冒泡             
			$("#show").style.display="block";
		}
				document.getElementById("other").onclick=function(){
					document.getElementById("show").style="display:block;"
		   }
			
			
		//重量加减值
		 var num_jia = document.getElementById("num-jia");
     var num_jian = document.getElementById("num-jian");
     var input_num = document.getElementById("input-num");
        num_jia.onclick = function() {
            input_num.value = parseInt(input_num.value) + 1;
        }
        num_jian.onclick = function() {
            if(input_num.value <= 0) {
                input_num.value = 0;
            } else {
                input_num.value = parseInt(input_num.value) - 1;
            }
        }


		
</script>
</html>
